//
//  ShareView.swift
//  MoodDiary
//
//  Created by OVIX on 2021/1/21.
//

import UIKit

class ShareView: UIView {

    override func draw(_ rect: CGRect) {
        let context: CGContext = UIGraphicsGetCurrentContext()!
        context.saveGState()
        context.translateBy(x: 0, y: 0)
        let img = UIImage(named: "分享背景")
        let rectImage = CGRect(x: 0, y: 0, width: width, height: height)
        img?.draw(in: rectImage)
        context.restoreGState()
    }

}
